package cn.itsource.org.mapper;

import cn.itsource.org.domain.Employee;
import cn.itsource.org.query.EmployeeQuery;

import java.util.List;

public interface EmployeeMapper {

    // 查询
    List<Employee> loadAll();
    // 查询条数
    Integer queryCount(EmployeeQuery query);
    // 查询当前页数据
    List<Employee> queryData(EmployeeQuery query);
    // 根据id删除
    void remove(Long id);
    // 批量删除
    void deleteByIds(Long[] ids);
    // 修改
    void update(Employee employee);
    // 增加
    void add(Employee employee);
}
